package edu.sctu.practice.class02.yangyuran.assign03.assign3_02;

/**
 * Created by Administrator on 2015/10/23.
 */
public class Cylinder extends Circle {
    public double height;

    public Cylinder(double radius, double height) {
        super(radius);
        this.radius = radius;
        this.height = height;
    }

    public double getRadius() {
        return radius;
    }

    public double getHeight() {
        return height;
    }

    public double getVolume() {
        return (radius * radius * PI) * height;
    }
}
